package client;
import client.InvestComInfo_GUI;
import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.naming.ConfigurationException;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.net.MalformedURLException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.awt.Font;

public class InvestComWorker_3_GUI extends JDialog {

	private final JPanel contentPanel = new JPanel();

	/**
	 * Launch the application.
	 *//*
	public static void main(String[] args) {
		try {
			InvestComWorker_3_GUI dialog = new InvestComWorker_3_GUI();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public InvestComWorker_3_GUI() {
		setTitle("\u8463\u4E8B");
		setModalityType(ModalityType.APPLICATION_MODAL);
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		contentPanel.setLayout(null);
		{
			JButton button = new JButton("\u8C03\u7528\u8D44\u91D1\u6295\u8D44");
			button.setFont(new Font("宋体", Font.PLAIN, 15));
			button.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					dispose();
					InvestVal_GUI dialog;
					dialog = new InvestVal_GUI();
					dialog.setLocationRelativeTo(null);
					dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
					dialog.setVisible(true);
		
				}
			});
			button.setBounds(145, 126, 141, 41);
			contentPanel.add(button);
		}
		{
			JButton btnNewButton = new JButton("\u67E5\u770B\u516C\u53F8\u4FE1\u606F");
			btnNewButton.setFont(new Font("宋体", Font.PLAIN, 15));
			btnNewButton.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					InvestComInfo_GUI dialog;
					try {
						dispose();
						dialog = new InvestComInfo_GUI();
						dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
						dialog.setVisible(true);
					} catch (ConfigurationException e1) {
					
						e1.printStackTrace();
					} catch (RemoteException e1) {
						
						e1.printStackTrace();
					} catch (MalformedURLException e1) {
						
						e1.printStackTrace();
					} catch (NotBoundException e1) {
					
						e1.printStackTrace();
					}
					
					
				}
			});
			btnNewButton.setBounds(145, 64, 141, 41);
			contentPanel.add(btnNewButton);
		}
		
		JButton button = new JButton("下班 ");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				dispose();
			}
		});
		button.setBounds(287, 198, 84, 30);
		contentPanel.add(button);
		
	}
}
